﻿<%@ WebHandler Language="C#" Class="delReply" %>

using System;
using System.Web;

public class delReply : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        BLL.Message bllmessage=new BLL.Message();
        object mid = context.Request["id"];
        if (mid != null)
        {
            if (bllmessage.softDelByMid(Convert.ToInt32(mid)))
            {
                //删除成功
                context.Response.Redirect(context.Request.UrlReferrer.ToString());
            }
            else
            {
                context.Response.Redirect("index.aspx");
            }
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}